package com.dinnerwithfriends.client.dinner.invite;

import com.dinnerwithfriends.client.MainPage;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;

/**
 * 
 * @UserInterface
 */
public class ButtonPostDinner extends Button {

	public ButtonPostDinner() {

		this.setText("SEND!");

		this.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {

				MainPage.mainPanel.clear();

				MainPage.mainPanel.add(new DinnerConfirmation());
			}
		});
	}
}
